$bool = SaveFile (
<file name>, <$variable>, [nooflines] )
Parameters
< file name >
File to write.
< $variable
> Variable containing the text to write.
[ nooflines ] Number
of lines of text to be written.
Return Value
SaveFile function
returns a boolean value indicating success or failure; 1 for success
and 0 for failure.
Remarks
After saving the file, it updates the date/time, filesize information in the group variable.
Example
$Variable.Line1 = "hello"
$Variable.Line2 = "world"
$Status = SaveFile("abc.txt", "Variable")
- Replaces the
first 2 lines of text in file "abc.txt" if it already exists, else, a file is
created by the name and the content is written from the variables $Variable.Line1
and $Variable.Line2.